﻿using AutoMapper;
using B.S.BasicData.Api.Read.Application.Command.User;
using B.S.BasicData.Api.Read.DTOS;
using B.S.BasicData.Domain.Entity;
using B.S.BasicData.Domain.Entity.Approval;
using B.S.BasicData.Domian.Entitys;

namespace B.S.BasicData.Api.Read
{
    public class MapperProfile:Profile
    {
        public MapperProfile()
        {
            CreateMap<ProvinceModel,ProvinceDto>().ReverseMap();
            CreateMap<CityModel,CityDto> ().ReverseMap();
            CreateMap<CountyModel,CountyDto>().ReverseMap();
            CreateMap<RoleModel, RoleDto>().ReverseMap();
            CreateMap<UsersModel, UserEmpDto>();
            CreateMap<UsersModel, UserRoleDto>();
            CreateMap<PathModel, MenuTreeDto>();
            CreateMap<RolePermissionModel, RolePermissionDto>();
            CreateMap<UsersModel,UserLoginDto>();

            CreateMap<DeparmentModel, DeparmentDto>();  
            CreateMap<LeaveTypeModel,LeaveTypeDto>();

            
        }
    }
}
